<%@ page pageEncoding="utf-8"%>
<!doctype html>
<html>
<head>
	<meta charset="utf-8"/>
	<script type="text/javascript" src="/resources/js/jquery-1.11.3.min.js"></script>
	<script type="text/javascript" src="/resources/js/commons.js"></script>
	<style>
		body{background:#3C8DBC;}
		h1{color:#fff;text-indent:20px;letter-spacing:5px;text-shadow:5px 5px 5px #000;}
	</style>
	<script type="text/javascript">
		$(function(){
			var loginUserRoleId = '<%= session.getAttribute("loginUserRoleId")%>';
			var system_title = "";
			if(loginUserRoleId == '1'){
				system_title = "思楠订餐后台管理系统";
			}else if(loginUserRoleId == '2'){
				system_title = "思楠订餐助手"
			}
			$("#system_title").text(system_title);

			/**
			 * 注销
			 */
			$(".logout").click(function () {
				var url = host + "/logout";
				$.post(url, null, function (result) {
					window.open(host + "/login");    //跳转
				});
			});
		});
	</script>
</head>
<body>
	<div style="width: 100%">
		<h1 id="system_title" style="width: 500px; float: left;">思楠订餐</h1>
		<h3 class="logout" style="width: 100px;  float: right; cursor: pointer; color: red;">注销登录</h3>
	</div>
</body>
</html>